package com.accp.vehiclecare.biz.syhbiz;

import com.accp.vehiclecare.dao.syhdao.IArvehicleDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class SyhArvehicleBiz {

    @Resource
    private IArvehicleDao dao;

    /**
     * 更新外勤车辆的里程
     * @param km
     * @param id
     */
    @Transactional(propagation = Propagation.REQUIRED)
    public void modifyKm(Double km,Integer id){
        dao.updateArvehiclekm(km, id);
    }
}
